﻿using MrPP.SocketSystem;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MrPP.SerriedCabinet
{
    public class RequestOpen : Request
    {
		byte area_;
		byte column_;

		public RequestOpen(byte area, byte column) {
			area_ = area;
			column_ = column;
		}

		public override short getCommand()
		{
			var bytes = new byte[] { 0xA0, 0x01 };
			return BitConverter.ToInt16(bytes, 0);
		}



		public override void serialize(DataStream writer)
		{
			base.serialize(writer);
			writer.WriteRaw(new byte[] { area_, column_ });
		}
	}
}